<?php
class Mageex_AdvanceSeo_Model_Observer 
{
	 /**
     * Enable/disable configuration
     */
    const XML_PATH_GENERATION_ENABLED = 'reviewremender/general/enabled';

    /**
     * Cronjob expression configuration
     */
    const XML_PATH_CRON_EXPR = 'crontab/jobs/reviewremender_sendmail/schedule/cron_expr';
	
	
	public function scheduledCron($schedule)
	{
		if (!Mage::getStoreConfigFlag(self::XML_PATH_GENERATION_ENABLED)) {
            return;
        }	
		try{
			
			$status = Mage::getModel('reviewremender/processdata')->sendMail();
		}catch(Exception $e){
				Mage::log($e->getMessage());
		}
		
		if($status){
			return;
		}
	}
	
	
}